function [ ] = check_str_param( str, params )

ok = false;
for s=params
    if (strcmpi(str, s))
        ok = true;
    end
end

if (~ok)
    error('bad param %s: %s', inputname(1), str);
end
    
end

